-- GENERATED SPELL FOR [Terokkarantula] --


function spell0_20682(pUnit, Event) --@Crippling Poison,n/a--
pUnit:FullCastSpellOnTarget(25809,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20682', 12347, 1)
end

function spell1_20682(pUnit, Event) --@Dread Poison,n/a--
pUnit:FullCastSpellOnTarget(39271,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20682', 20000, 1)
end

function Sorts_20682(pUnit, Event)
local choix_sorts_20682 = math.random(0, 1)
if choix_sorts_20682 == 0 then
pUnit:RegisterEvent('spell0_20682', 1, 1)
end
if choix_sorts_20682 == 1 then
pUnit:RegisterEvent('spell1_20682', 1, 1)
end
end

function mob20682_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20682', math.random(1500, 3000), 1)
end

function mob20682_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20682_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20682_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20682, 1, 'mob20682_Action')
RegisterUnitEvent(20682, 2, 'mob20682_Leave')
RegisterUnitEvent(20682, 3, 'mob20682_Kill')
RegisterUnitEvent(20682, 4, 'mob20682_Die')
